package com.ys.entity.account;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_AdvanceAccountReimbursementItem", catalog="Id")
public class TcwAdvanceAccountReimbursementItem extends BaseEntity<TcwAdvanceAccountReimbursementItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="AdvanceAccountDetailId", nameJava="advanceAccountDetailId", typeDataBase="bigint")
	private Long advanceAccountDetailId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwAdvanceAccountReimbursementItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcwAdvanceAccountReimbursementItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getAdvanceAccountDetailId() {
		return advanceAccountDetailId;
	}
	public TcwAdvanceAccountReimbursementItem setAdvanceAccountDetailId(Long advanceAccountDetailId) {
		this.advanceAccountDetailId = advanceAccountDetailId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwAdvanceAccountReimbursementItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwAdvanceAccountReimbursementItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwAdvanceAccountReimbursementItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwAdvanceAccountReimbursementItem tcwAdvanceAccountReimbursementItem(
		String pbid,
		Long advanceAccountDetailId,
		Integer status
			) {
		TcwAdvanceAccountReimbursementItem entity = new TcwAdvanceAccountReimbursementItem();
		entity.setPbid(pbid);
		entity.setAdvanceAccountDetailId(advanceAccountDetailId);
		entity.setStatus(status);
		return entity;
	}
}